
# ifndef __DFX_FILE_LOG_H__
# define __DFX_FILE_LOG_H__

# include "dfxLog.h"

namespace DFX
{
    class DFX_EXPORT FileLog : public Log
    {
    protected:

        String  mFileName;
        FILE    *mLogFp;

    public:

        FileLog(UInt32 logLevel);
        virtual ~FileLog();

        const String& GetFileName() const
        {
            return mFileName;
        }

        DFXRESULT Open(const String &fileName);
        DFXRESULT Close();
        
        void Write(LOG_TYPE logType, const String &fileName, UInt32 lineNo, char *format, ...);
    };
}

# endif